﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using IDAL;
using Factory;

namespace BLL
{
    /// <summary>
    /// 攻略
    /// </summary>
    public class B_Strateg : IStrateg
    {
        public void Add(Strateg obj)
        {
            CreateFactory.GetStrateg().Add(obj);
        }

        public void Delete(int id)
        {
            CreateFactory.GetStrateg().Delete(id);
        }

        public Strateg FindById(int id)
        {
            return CreateFactory.GetStrateg().FindById(id);
        }

        public List<Strateg> GetAll()
        {
            return CreateFactory.GetStrateg().GetAll();
        }

        public void Update(int id, Strateg obj)
        {
            CreateFactory.GetStrateg().Update(id, obj);
        }
    }
}
